package com.alks.function.mapper.stockdept.pcfactorystockquery;

import com.alks.entity.data.entity.PcMtlAcc;
import com.alks.entity.data.entity.PcSlipTemp;
import com.alks.entity.data.entity.SdBomMtl;
import com.alks.function.data.dto.procurement.CommonMaterialDetailDto;
import com.alks.function.data.request.procurement.CommonMaterialDetailRequest;
import com.alks.function.data.request.stockdept.pcfactorystockwork.OMtlwaitAddRequest;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ms
 * @since 2023-09-08
 */
@Mapper
public interface SD_SQ_SdBomMtlMapper extends BaseMapper<SdBomMtl> {

    /*新增用通用材料查询*/
    PcSlipTemp comMtlQuery(String mtlNo);

    /*待入库新增查询*/
    List<PcSlipTemp> getOtMtlWaitStk2(List<OMtlwaitAddRequest> request);

    /*通用材料明细查询*/
    List<CommonMaterialDetailDto> getCommonMaterialDetail(@Param("companyId") String companyId, @Param("request") CommonMaterialDetailRequest request);

    /**
     * 获取不存在的物料信息
     */
    PcMtlAcc getMissByVo(@Param("read") PcMtlAcc read);
}
